package leetcode_201_300;

import node.ListNode;

import java.util.List;

public class LeeCode_237 {
    public static void main(String[] args) {

    }
    private static void deleteNode(ListNode node) {
        while (node != null){
            if (node.next != null){
                node.val = node.next.val;
                if (node.next.next == null){
                    node.next = null;
                    break;
                }
            }
            node = node.next;
        }
    }
}
